package com.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 贺瑞杰
 * @version V1.0
 * @date 2018-07-16 0:32
 * @description
 */
@RestController
public class TestController {

    @Value("${server.port}")
    private int port;

    @RequestMapping("/output")
    public String output(String name) {
        return "端口：" + port + " , 输出：" + name;
    }

}
